The Boolean type can be the simplest of the three packaging objects: Number, String, and Boolean. Number and String objects have a large Number of instance attributes and methods, but few Boolean objects. In a sense, designing a program for a
PHP Boolean data type falsetrue usage introduction. In php, falsetrue is true or false. in php, falsetrue is called a Boolean data type. it is a common data type. for example, conditional judgment is also a Boolean data type, in php, false true
Grammar:
To specify a Boolean value, use the keyword TRUE or FALSE. Two are not case-sensitive.
The code is as follows
Copy Code
$foo = True; Assign the value TRUE to $foo?>
The Boolean value returned by the
This is the simplest type. Boolean represents the TRUE value, which can be TRUE or FALSE. This is the simplest type. Boolean represents the TRUE value, which can be TRUE or FALSE.
Syntax
To specify a Boolean value, use the keyword TRUE or FALSE.
This is the simplest type. Boolean expresses the truth value, which can be TRUE or FALSE.
Grammar
To specify a Boolean value, use the keyword TRUE or FALSE. Two are not case-sensitive.
The Boolean result returned by the usual operator is passed to
In php, false true indicates true or false. in php, it is called a boolean data type. It is a common data type. For example, conditional judgment is also a boolean data type, the following is an introduction.
Syntax
To specify a Boolean value, use
a more comprehensive set of PHP tutorials , basic video and some small combat projects, below is the video directoryCD-ROM (i) \php employment Class (I.)CD-ROM (i) \php Technical exchange zone. URLCD-ROM (i) \ "Wisdom Special issue" belongs to it
The Boolean type is the simplest type in PHP. It can have a value of TRUE or FALSE,
1 is True (true), 0 is False (false)
In Computer science, a Boolean data type, also known as a logical data type, is a primitive type with only two values: Non 0
This article describes the boolean type in php in detail. if you need a friend, you can refer to it. I hope it will be helpful to everyone when converting to boolean, the following values are considered FALSE:
The Boolean value is FALSE.
The
PHP Boolean type
This is the simplest type. Boolean represents the TRUE value, which can be TRUE or FALSE.
Note: The Boolean type is introduced in PHP 4.Syntax
To specify a Boolean value, use the keyword TRUE or FALSE. Both are case insensitive.
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.